package com.cn.yz.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cn.yz.springboot.model.SysUser;
import com.cn.yz.springboot.service.SysUserService;

@RestController
public class ObjectRedisController {
	
	private static final Logger logger = LoggerFactory.getLogger(ObjectRedisController.class);

	@Autowired
	private SysUserService sysUserService;
	
	@RequestMapping("/setSysUser")  
    public SysUser get(int id) {
       logger.info("访问setSysUser：id");
       return sysUserService.selectByPrimaryKey(id);
    }  
}
